package com.un.ebs.purchase.domain;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (PurchaseOrderItem)表实体类
 *
 * @author liubo
 * @since 2020-08-16 22:57:35
 */
@Data
@Component
@TableName("tb_purchase_order_item")
@SuppressWarnings("serial")
public class PurchaseOrderItem extends Model<PurchaseOrderItem> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;


    @DbField(name = "order_id", length = 40, precision = 0)
    private String orderId;

    @DbField(name = "sku_id", length = 40, precision = 0)
    private String skuId;

    @DbField(name = "qty", length = 18, precision = 4)
    private Double qty;

    @DbField(name = "price", length = 18, precision = 4)
    private Double price;

    @DbField(name = "production_order_item_id", length = 40, precision = 0)
    private String productionOrderItemId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}